/*
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * This file is a part of the CANN Open Software.
 * Licensed under CANN Open Software License Agreement Version 1.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */

#ifndef CUSTOM_ALL_REDUCE_OPERATOR_H
#define CUSTOM_ALL_REDUCE_OPERATOR_H

#include "coll_alg_operator.h"

namespace hccl {
// 数据规模分类
enum class HcclDataCountType { HCCL_COUNT_SMALL = 0, HCCL_COUNT_MEDIUM, HCCL_COUNT_HUGE, HCCL_COUNT_RESERVED };

class CustomAllReduceOperator : public CollAlgOperator {
public:
    CustomAllReduceOperator(AlgConfigurator *algConfigurator, CCLBufferManager &cclBufferManager,
                            HcclDispatcher dispatcher, std::unique_ptr<TopoMatcher> &topoMatcher);

    ~CustomAllReduceOperator();

    HcclResult SelectAlg(const std::string &tag, const OpParam &param, std::string &algName,
                         std::string &newTag) override;
};
} // namespace hccl
#endif
